﻿using ERP.Application.Contracts.ERPSystem.ProductionSystem.Dto;
using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-设备管理-点检保养计划-xzc
    /// </summary>
    public interface IMaintenanceSerivces:IApplicationService
    {
        /// <summary>
        /// 新增点检保养计划
        /// </summary>
        /// <param name="maintenancedto"></param>
        /// <returns></returns>
        Task<int> AddMaintenance(MaintenanceDto maintenancedto);
        /// <summary>
        /// 更改点检保养计划
        /// </summary>
        /// <param name="maintenancedto"></param>
        /// <returns></returns>
        Task<int> UpdateMaintenance(MaintenanceDto maintenancedto);
        /// <summary>
        /// 通过id查询到对应的点检保养计划
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<Maintenance>> FindMaintenance(int id);
        /// <summary>
        /// 删除点检保养计划
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteMaintenance(int id);
        /// <summary>
        /// 查询点检保养计划
        /// </summary>
        /// <param name="getmaintenancedto"></param>
        /// <returns></returns>
        Task<List<Maintenance>> GetMaintenance(GetMaintenanceDto getmaintenancedto);
        /// <summary>
        /// 批量删除点检保养计划
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task BatchDeleteMaintenance(List<int> ids);
    }
}
